﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;

namespace Adge.Web.UI
{
    public partial class pictureViewer : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string relPath = Request["relPath"];
                if (!string.IsNullOrEmpty(relPath))
                {
                    if (File.Exists(Server.MapPath(relPath)))
                    {
                        imgHolder.ImageUrl = this.ResolveUrl(relPath);
                        imgHolder.Attributes.Add("onload", "javascript:resizeimg(this,800,600)");
                    }
                }
                
            }
        }
    }
}
